package com.hzx.ssm.dao;

import com.hzx.ssm.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    void registerUser(User user);

    User findUser(@Param("username") String username,@Param("password") String password);

    int  existName(@Param("username") String username);

    User getUser(@Param("username") String username,@Param("user_id") String user_id);

    List<User> getAllUser();

    void updateSelfMessage(User user);

    void updatePassword(@Param("user_id") String user_id,@Param("password") String password);
}
